<?php

/**
 * 项目接口
 * @author: 喵了个咪  <wenzhenxi@vip.qq.com>    2015-9-16
 */
class Api_Project extends PhalApi_Api {

    public function getRules() {

        return array(
            //获取项目清单
            'getProjectList' => array(
                'uId' => array('name' => 'uId', 'require' => true),
            ),
        );
    }

    /**
     * 获取项目清单
     */
    public function getProjectList() {

        //验证管理员账号
        $Domain_Manage = new Domain_Manage();
        $Domain_Manage->checkadminId($this->uId);
        //获取项目清单
        $Domain_Project = new Domain_Project();
        return $Domain_Project->getProjectList();
    }
}


